﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZebraDatePickerDotNet.Dates;

namespace ZDatePickerTest
{
    public partial class _default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;

        }

        protected void samplebtn_OnClick(object sender, EventArgs e)
        {
            //setting property on code behind

            ZDatePicker1.ShowIcon = false;
            DERT.AlwaysShowClear = false;

            //for sample code just showing update panel
            System.Threading.Thread.Sleep(3000);

            dtOne.Text = DERT.Text.ToShamsi().ToString("$dddd,$d $MMMM $yyyy") + "<br />" +
                         DERT.Text.ToShamsi().ToDateTime().ToString();
        }
    }
}